# Author: wangjk
# 2025年10月24日12时44分
# xxx@qq.com

names = ['cheng lei', 'wang bin', 'li wenyi']

names[1] = 'guo runhan'

print("I have booked a bigger table for dinner.")

names.insert(0, 'zhang yizhuo')
names.insert(2, 'liu hao')
names.append('ji xiaoshuang')

print('The table I booked will not be sent on time, so I dicide invite only two friends to have dinner.')

print(names)
print(f'I am sorry, {names.pop().title()}. I could not have dinner with you.')
print(f'I am sorry, {names.pop().title()}. I could not have dinner with you.')
print(f'I am sorry, {names.pop().title()}. I could not have dinner with you.')
print(f'I am sorry, {names.pop().title()}. I could not have dinner with you.')

print(f'{names[0].title()}, you are still in my inviting list.')
print(f'{names[1].title()}, you are still in my inviting list.')

print(names)
del names[0]
print(names)
del names[0]
print(names)
